package com.opennetexam.manager.controller;

import com.opennetexam.manager.dto.ExamAdminInfoDTO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * @author 奶茶
 * Created on 2017/11/8.
 */
@Controller
@RequestMapping(value = "/Home")
public class HomeController extends BaseController{

    @RequestMapping(value = "/Index")
    public String index(String account,Map<String,Object> model){
        ExamAdminInfoDTO adminUserInfo = getAdminUserInfo(account);
        model.put("ExamSiteName",adminUserInfo.getExamSiteID());
        return "home/Index";
    }

}
